package com.fqgj.sentry.controller.pc.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

import java.util.List;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-26 下午4:44
 */


public class UpdatePolicySetVo extends ParamsObject {

    private Long id;
    private String name;
    private String info;
    private List<String> moduleKeys;

    public List<String> getModuleKeys() {
        return moduleKeys;
    }

    public UpdatePolicySetVo setModuleKeys(List<String> moduleKeys) {
        this.moduleKeys = moduleKeys;
        return this;
    }

    @Override
    public void validate() {
        if (id == null) {
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public Long getId() {
        return id;
    }

    public UpdatePolicySetVo setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public UpdatePolicySetVo setName(String name) {
        this.name = name;
        return this;
    }

    public String getInfo() {
        return info;
    }

    public UpdatePolicySetVo setInfo(String info) {
        this.info = info;
        return this;
    }
}
